<!-- Main Content -->
<div id="content">
	<div id="main">
          <h1>Bienvenido, <span><?php echo $this->administrador->nombre ; ?></span>!</h1>
	   <p><?php echo $this->titulo ; ?></p>
           <!-- fullwidth / normal -->
           <table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
		<thead>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Id</td>
                        <td>Titulo</td>
                        <td>Slug</td>
                        <td>Fecha</td>
                        <td>Acciones</td>
                    </tr>
		</thead>
                <tbody>
                 <?php $e=0; ?>

                 <?php foreach($this->articulos as $articulo) : $e++; ?>

                    <?php if($e % 2 == 0) : ?>

                    <tr class="odd">
                        <td>&nbsp;</td>
                        <td><?php echo $articulo->id; ?></td>
                        <td><?php echo $articulo->titulo; ?></td>
                        <td><?php echo $articulo->slug; ?></td>
                        <td><?php echo $articulo->fecha; ?></td>
                         <td>
                            <ul id="icons" class="ui-widget ui-helper-clearfix">
                               <li class="ui-state-default ui-corner-all" title="Editar">
                                   <a href="<?php echo $this->url(array('controller'=>'articulo','action'=>'editar','id'=>$articulo->id));?>"><span class="ui-icon ui-icon-pencil"></span></a>
                               </li>
                               <li class="ui-state-default ui-corner-all" title="Eliminar">
                                   <a href="javascript:confirmDelete('<?php echo $this->url(array('controller'=>'articulo','action'=>'eliminar','id'=>$articulo->id)); ?>','registro')"><span class="ui-icon ui-icon-circle-close"></span></a>
                               </li>
                            </ul>
                         </td>
                    </tr>

                    <?php else : ?>

                    <tr>
                        <td>&nbsp;</td>
                        <td><?php echo $articulo->id; ?></td>
                        <td><?php echo $articulo->titulo; ?></td>
                        <td><?php echo $articulo->slug; ?></td>
                        <td><?php echo $articulo->fecha; ?></td>
                         <td>
                            <ul id="icons" class="ui-widget ui-helper-clearfix">
                               <li class="ui-state-default ui-corner-all" title="Editar">
                                   <a href="<?php echo $this->url(array('controller'=>'articulo','action'=>'editar','id'=>$articulo->id));?>"><span class="ui-icon ui-icon-pencil"></span></a>
                               </li>
                               <li class="ui-state-default ui-corner-all" title="Eliminar">
                                   <a href="javascript:confirmDelete('<?php echo $this->url(array('controller'=>'articulo','action'=>'eliminar','id'=>$articulo->id)); ?>','registro')"><span class="ui-icon ui-icon-circle-close"></span></a>
                               </li>
                            </ul>
                         </td>
                    </tr>

                    <?php endif; ?>

                 <?php endforeach; ?>

                </tbody>
    </table>

    <?php echo $this->paginationControl($this->paginator); ?>

   </div>
</div>